package org.example.myframework.frame.demo.config.ws;

import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * @name: WebSocket配置类
 * @description: 开启WebSocket支持
 * @create: 2024-02-16
 */
// @Configuration
@ConditionalOnWebApplication
public class WebSocketConfig {

    // @Bean
    public ServerEndpointExporter serverEndpointExporter() {
        return new ServerEndpointExporter();
    }

}
